<template>
  <el-dialog
    :title="title"
    :visible="visible"
    width="1300px"
    :before-close="closeForm"
    :modal-append-to-body="false"
    :modal="false"
    :close-on-click-modal="false"
  >
    <auditForm :form-id="formId" :is-load="visible" :link-pk="linkPk" :link-type="linkType" :readonly="true" :page-type="2" />
  </el-dialog>
</template>

<script>
import auditForm from './auditForm.vue'
export default {
  components: {
    auditForm
  },
  props: {
    linkPk: {
      type: String,
      default: null
    },
    linkType: {
      type: String,
      default: null
    },
    title: {
      type: String,
      default: null
    },
    formId: {
      type: String,
      default: null
    },
    visible: {
      type: Boolean,
      default: false
    }
  },
  data() {
    return {
    }
  },
  computed: {
  },
  mounted() {},
  methods: {
    closeForm() {
      this.$emit('update:visible', false)
    }
  }
}
</script>
